﻿//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Runtime.Serialization;
//using System.ServiceModel;
//using System.ServiceModel.Web;
//using System.Text;

//namespace WeiboPushService
//{
//    [ServiceContract]
//    public interface IPushService
//    {
//        [OperationContract]
//        bool IsRegistered(string userID);

//        [OperationContract]
//        bool Register(UserProfile userProfile);
//    }

//    [DataContract]
//    public class UserProfile
//    {
//        [DataMember]
//        public string UserID;

//        [DataMember]
//        public string AccessToken;

//        [DataMember]
//        public string AccessSecret;

//        [DataMember]
//        public string PushChannel;

//        [DataMember]
//        public uint UpdateIntervalInMinutes;
//    }
//}
